package com.lg.spring.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author by Mr. Li 2020/6/3 9:04
 */
@RestController
@RequestMapping("demo")
public class DemoController {

	@Value("${myConfig.myObject.myName}")
	private String myName;


	@GetMapping("/test")
	public String test() {
		return "Hello Spring Boot";
	}
}
